//
//  GatherModel.m
//  UGoods
//
//  Created by dllo on 16/1/25.
//  Copyright © 2016年 蓝鸥科技.李贺. All rights reserved.
//

#import "GatherModel.h"

@implementation GatherModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"from_user"]) {
        self.nickname = value[@"nickname"];
        self.user_pic = value[@"user_pic"];
        self.user_id = [value[@"user_id"] stringValue];
    }
    if ([key isEqualToString:@"content"]) {
        self.pingjia = value[@"pingjia"];
        self.goods = value[@"goods"];
        self.kaopu_num = [value[@"kaopu_num"] stringValue];
    }
}

@end
